package Posicao;

public class Posicao {
	private int x = 0;
	private int y = 0;
	
	public Posicao(int x, int y) {
		this.setX(x);
		this.setY(y);
	}

	public int getX() {
		return this.x;
	}
	
	public void setY(int y) {
		this.y = y;
	}

	public int getY() {
		return this.y;
	}
	
	public void setX(int x) {
		this.x = x;		
	}
	
	public boolean equals(Posicao novaPosicao)  {
		return (this.getX() == novaPosicao.getX() && this.getY() == novaPosicao.getY());
		
	}
	public String toString() {
		return Integer.toString(this.getX())+"."+Integer.toString(this.getY());
	}
}
